package it.polimi.reTravelDream.dto;


import java.util.Date;

import org.hibernate.validator.constraints.NotEmpty;

public class FlightDTO {
	
	private int id;
	
		
	private String departureCity;

	private String arrivalCity;
	
	private Date data;
	
	private int price;
	
	private boolean isActive;
	
		public String getDepartureCity() {
			return departureCity;
		}
		public void setDepartureCity(String departureCity) {
			this.departureCity = departureCity;
		}
		public String getArrivalCity() {
			return arrivalCity;
		}
		public void setArrivalCity(String arrivalCity) {
			this.arrivalCity = arrivalCity;
		}
		public int getId() {
			return id;
		}
		public void setId(int id) {
			this.id = id;
		}
		
		public Date getData() {
			return data;
		}
		public void setData(Date data) {
			this.data = data;
		}
		
		
		@Override
		public String toString(){
			return " volo id: "+this.id+" citta arrivo: "+ this.arrivalCity+" citta partenza: "+this.departureCity;
		}
		public int getPrice() {
			return price;
		}
		public void setPrice(int price) {
			this.price = price;
		}
		public boolean isActive() {
			return isActive;
		}
		public void setActive(boolean isActive) {
			this.isActive = isActive;
		}
}
